@extends('admin.layout')

@section('content_header')
    score rank
@stop

@section('content')
<p><a href="{{route('admin.scorerank.create')}}" class="btn btn-info">添加</a></p>
    <table class="table table-bordered">
    	
    	<thead>
    		<th>ランク</th>
    		<th>スコア最小値</th>
    		
            <th>スコア最大値</th>
            <th>金利中央値</th>
    		<th>金利最小値</th>
            <th>金利最大値</th>
            <th class="w-25">rank comment</th>
            <th></th>
    	</thead>
    	<tbody>
    		
    		@foreach($datas as $v)
    			<tr>
    				
    				<td>{{ $v->score_rank }}</td>
    				<td>{{ $v->min_score }}</td>
                
    				<td>{{ $v->max_score }}</td>
                    <td>{{ $v->median_interests }}</td>
                    <td>{{ $v->min_interests }}</td>
                    <td>{{ $v->max_interests }}</td>
                    <td>{{ $v->message }}</td>

    				<td>
                        <a href="{{route('admin.scorerank.edit', $v)}}" class="far fa-edit text-secondary border-0 mr-3"></a>
                        <a href="javascript:;" class="far fa-trash-alt text-secondary" data-url="{{route('admin.scorerank.destroy', $v)}}"></a>            
                    </td>
    			</tr>
    		@endforeach
    	</tbody>
    </table>
@endsection